projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6e97b0
)
Fix last change.
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 13 Sep 2001 14:06:10 +0000
(14:06 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 13 Sep 2001 14:06:10 +0000
(14:06 +0000)
src/ChangeLog
patch
|
blob
|
history
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index c053a1530d17cd431c6905582a48fb62135537c8..57eefa996e355f1eba044a02ea873822ba628e1b 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,8
@@
2001-09-13 Gerd Moellmann <gerd@gnu.org>
+ * filelock.c (current_lock_owner): If readlink returns ERANGE,
+ take that to mean that the buffer is too small.
+
* fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
that to mean that the buffer is too small.
diff --git
a/src/filelock.c
b/src/filelock.c
index 6e78a05e30954022807059011b236f1f6b4017f6..f82c16b7996d4774d8f0746eaa1bfe5ce6f4420d 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-435,6
+435,7
@@
current_lock_owner (owner, lfname)
{
bufsize *= 2;
lfinfo = (char *) xrealloc (lfinfo, bufsize);
+ errno = 0;
len = readlink (lfname, lfinfo, bufsize);
#ifdef ERANGE
/* HP-UX reports ERANGE if the buffer is too small. */